package cn.bonoon.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import cn.bonoon.kernel.support.entities.BaseEntity;

/**
 * 账号的代管规则
 * @author jackson
 *
 */
@Entity
@Table(name = "t_accountpr")
public class AccountProxyRuleEntity extends BaseEntity{

	private static final long serialVersionUID = 5927237874415614226L;
	
	@ManyToOne
	@JoinColumn(name = "R_ACCOUNT_ID")
	private AccountEntity account;

	@Column(name = "C_PASSWORD", length = 64)
	private String password;

	/** 优先级数值越大，优先级越低 */
	@Column(name = "C_PRIORITY")
	private int priority;

	public AccountEntity getAccount() {
		return account;
	}

	public void setAccount(AccountEntity account) {
		this.account = account;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getPriority() {
		return priority;
	}

	public void setPriority(int priority) {
		this.priority = priority;
	}
}
